home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2002-01-01 | 3.6 KB | 125 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0" "TYPE"="9" "COUNT"="1" "UIPATH"="Appearance\Start menu\Windows NT" "NAME"="Start Menu Options" "VERSION"="4.00" "LANGUAGE"="VBScript" "OSVERSION"="01" "TEXT 1"="dⁿdel dⁿ" "DESCRIPTION 1"="Common Groups: Normally the contents of the Start Menu vary from user to user. With this option enabled, you will also be able to see 'Common groups' which all users of a particular computer can see." "DESCRIPTION 2"="User-created Folders: If this is enabled, extra folders (like the Cascading Control Panel) can appear above the Program entry. When disabled, these folders will be hidden." "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="'Multiple Columns' setting from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!" "COMMENT 2"="Thanks to Ken [k-o@cyberdude.dk] for the "no drag&drop" notice." "COMMENT 3"="Thanks to Dutler, Dennis R [dennis.dutler@eds.com] for the "XP screw up" notice" sV_CommonGroups="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoCommonGroups" sV_StartMenuScroll="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" sV_ProgramsContext="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoChangeStartMenu" sV_AdminTools="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools" sV_StartButtonContext="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoTrayContextMenu" sV_SubFolders="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoStartMenuSubFolders" sV_IntelliMenus="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\IntelliMenus" SUB Plugin_Initialize 'NT/2000 (XP?) Call SetUIElement(1,"Show Common Groups in Start->Programs") Call ReadIt(1,sV_CommonGroups) 'NT/2000/ME/XP Call SetUIElement(2,"Show user-created folders at top of Start Menu") Call ReadIt(2,sV_SubFolders) END SUB SUB Plugin_CheckData(ElementIndex) END SUB SUB Plugin_Apply(ElementIndex,ElementSubIndex) Call WriteIt(1,sV_CommonGroups) Call WriteIt(2,sV_SubFolders) Call IndicateSettingChange() END SUB SUB Plugin_Terminate END SUB Sub ReadIt(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item visible Call SetUIElementEx(ITM,true) else i=RegReadValue(PATH1) if i=0 then Call SetUIElementEx(ITM,true) end if end if End Sub Sub ReadIt_2(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item not visible Call SetUIElementEx(ITM,false) else i=RegReadValue(PATH1) if i=1 then Call SetUIElementEx(ITM,true) end if end if End Sub Sub ReadIt_3(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item is active Call SetUIElementEx(ITM,true) else s=RegReadValue(PATH1) if LCase(s)="yes" then Call SetUIElementEx(ITM,true) end if end if End Sub Sub WriteIt(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then s=RegReadValue(PATH1) if IsEmpty(s)=false then Call RegDeleteValue(PATH1) end if else Call RegWriteValue(PATH1,1,2) end if End Sub Sub WriteIt_2(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then Call RegWriteValue(PATH1,1,2) else Call RegWriteValue(PATH1,0,2) end if end Sub Sub WriteIt_3(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then Call RegWriteValue(PATH1,"YES",1) else Call RegWriteValue(PATH1,"NO",1) end if End Sub